package com.myzl.coal.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.myzl.common.annotation.Excel;
import com.myzl.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 协议对照对象 agreement_contrast
 *
 * @author myzl
 * @date 2022-12-01
 */
@Data
@TableName("agreement_contrast")
public class AgreementContrast extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private Integer deviceType;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 地址 */
    @Excel(name = "地址")
    private Integer address;

    /** 16进制地址 */
    @Excel(name = "16进制地址")
    private String hexAddress;

    /** 寄存器个数 */
    @Excel(name = "寄存器个数")
    private Integer registerCount;

    /** 字典属性值(取描述及单位) */
    @Excel(name = "字典属性值(取描述及单位)")
    private Integer dictValue;

    /** 模式(1只读 2读写) */
    @Excel(name = "模式(1只读 2读写)")
    private String model;

    /** 数据类型(int、long、boolean) */
    @Excel(name = "数据类型(int、long、boolean)")
    private String dataType;

    /** 加减乘除（+、-、*、/） */
    @Excel(name = "加减乘除", readConverterExp = "+=、-、*、/")
    private String algorithm;

    /** 计算值 */
    @Excel(name = "计算值")
    private Long calculatedValue;

    /** 协议类型(Modbus) */
    @Excel(name = "协议类型(Modbus)")
    private String agreementType;

}
